<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<c:url value='/css/bootstrap.css' />" rel="stylesheet">
<title>Money for nothing - Log In</title>
</head>
<body>
	<div class="container offset-content">
		<%@include file="title.jsp"%>
		<div class="span12 subnav">
			<ul class="pagination">
				<li><a href="<c:url value="/" />">Home</a></li>
				<li><a href="<c:url value='/accounts'/> ">Accounts</a></li>
				<li><a href="<c:url value='/transfers/generate'/> ">Transfers</a></li>
			</ul>
		</div>
		<form class="span12 form-horizontal" name='f'
			action="<c:url value='j_spring_security_check' />" method='POST'>
			<fieldset>
				<legend>Sign in</legend>
				<c:if test="${not empty error}">
					<div class="errorblock alert alert-error">
						Your login attempt was not successful, try again.<br /> Caused :
						${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
					</div>
				</c:if>

				<div class="control-group">
					<label class="control-label" for="input01">Account</label>
					<div class="controls">
						<input type="text" class="input-xlarge" id="input01"
							name="j_username">
					</div>
				</div>

				<div class="control-group">
					<label class="control-label" for="input01">Password</label>
					<div class="controls">
						<input type="password" class="input-xlarge" id="input01"
							name="j_password">
					</div>
				</div>

				<div class="form-actions">
					<button name="submit" type="submit" class="btn btn-primary">Sign
						in</button>
					<button name="reset" type="reset" class="btn">Reset</button>
				</div>
			</fieldset>
		</form>
		<%@include file="footer.jsp"%>
	</div>
</body>